import request from "@/router/axios";

//审核员名单列表
export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/auditorlist/list",
    method: "get",
    params: {
      current,
      size,
      ...params
    }
  });
};

export const save = data => {
  return request({
    url: "/api/hg-quality/auditorlist/save",
    method: "post",
    data
  });
};

export const update = data => {
  return request({
    url: "/api/hg-quality/auditorlist/update",
    method: "post",
    data
  });
};

export const getDetail = id => {
  return request({
    url: "/api/hg-quality/auditorlist/detail",
    method: "post",
    params: { id }
  });
};

export const remove = ids => {
  return request({
    url: "/api/hg-quality/auditorlist/remove",
    method: "post",
    params: { ids }
  });
};

export const submit = ids => {
  return request({
    url: "/api/hg-quality/auditorlist/submit",
    method: "post",
    params: { ids }
  });
};
